<?php
class Intranet_RotinaController extends AcessoRestritoController
{
	public function indexAction()
	{
	    $this->view->assign('teste','teste'); 
	}
	
	public function liberacaoAction()
	{
		$objRotina = new Rotina();
		$rowsObjRotina = $objRotina->_getListRotinaConcluida();
		$this->view->assign('rotinas',$rowsObjRotina);
	}
	
	public function liberarAction()
	{
	   //$this->view->assign('texto',extract($_POST));
	    $check = $_POST['check'];  
	    $data  = $_POST['dataRotina'];
	    $idrotina = $_POST['idrotina'];
	    
		if(empty($check))  
		{  
			echo("You didn't select any buildings.");  
		}  
		else 
		{  
			$N = count($check);  
			echo("You selected $N door(s): ");  
		    for($i=0; $i < $N; $i++)  
		    {
		    	echo($check[$i] . " ");  
		    	echo($data[$i] . " ");  
		    	echo($idrotina[$i] . " ");  
		    	
			}  
			
			
		}  
		exit;
	   
	   

	}
	
	
	
}